window.addEventListener(`load`, function () {
    // =========获取元素 start=========
    let init = this.document.querySelector(`.init`)
    // =========获取元素 end=========

    init.addEventListener(`click`, function () {
        axios({
            url: `/init/data`
        }).then(res => {
            // console.log(res);
            if (res.data.code == 0) {
                toastr.success(res.data.message)
            } else {
                toastr.warning(res.data.message)
            }
        })
    })

})